package com.isdepci.project.carbon.mapper;

import com.isdepci.project.carbon.domain.BHeatEmission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 热力排放Mapper接口
 *
 * @author isdepci
 * @date 2025-03-29
 */
public interface BHeatEmissionMapper
{

    // 按照年份查询
    List<BHeatEmission> selectByYear(@Param("projectId") Long projectId, @Param("startYear") String startYear, @Param("endYear") String endYear);

    // 按照月份查询
    List<BHeatEmission> selectByMonth(@Param("projectId") Long projectId, @Param("startMonth") String startMonth, @Param("endMonth") String endMonth);


    /**
     * 查询热力排放
     */
     BHeatEmission selectBHeatEmissionById(Long id);

    /**
     * 查询热力排放列表
     */
     List<BHeatEmission> selectBHeatEmissionList(BHeatEmission bHeatEmission);

    /**
     * 新增热力排放
     */
     int insertBHeatEmission(BHeatEmission bHeatEmission);

    /**
     * 修改热力排放
     */
     int updateBHeatEmission(BHeatEmission bHeatEmission);

    /**
     * 删除热力排放
     */
     int deleteBHeatEmissionById(Long id);

    /**
     * 批量删除热力排放
     */
     int deleteBHeatEmissionByIds(Long[] ids);


    void insertList(@Param("list") List<BHeatEmission> list);


    List<BHeatEmission> selectBHeatEmissionListByProjectId(Long projectId);



}
